import 'package:elephant_fish/http/core/hi_net.dart';
import 'package:elephant_fish/http/request/base_request.dart';
import 'package:elephant_fish/http/request/send_code_request.dart';

class SendCodeDao{
  static sendCode(String phone,String type) async{
    BaseRequest request = SendCodeRequest();
    request.add('phone', phone).add('type', type);
    var result = await HiNet.getInstance().fire(request);
    print(result);
    return result;
  }
}